<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="../js/angular/angular.min.js"></script>
	<script src="../js/angular/angular-resource.js"></script>
	<script src="../js/angular/common.js"></script>
	<script src="../js/common.js"></script>
	<script src="../js/mui.min.js"></script>
	<script src="../js/service/xieyiService.js"></script>
    <link href="../css/mui.min.css" rel="stylesheet"/>
</head>
<body ng-app="mainApp" ng-controller="xieyiContentCtrl">
	<header class="mui-bar mui-bar-nav" style="padding-right: 15px;">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">{{xy.typeName}}</h1>
	</header>
	<div class="mui-content">
		<div class="mui-content-padded">
			<p>
				您好，请您仔细阅读协议内容：
				<ul>
					<li>当前协议为{{xy.typeName}}</li>
					<li>只有同意协议内容后，才能进行后续操作。</li>
				</ul>
				<span id='goodId'>{{xy.title}}</span>
			</p>
		</div>
		<div class="mui-content-padded" >
				<input id="xieyi" type="radio" checked/>
				<a id='xyContent'>《同意并阅读协议》</a></div>
			<div class="mui-content-padded">
	</div>
	 <script type="text/javascript" charset="utf-8">
      	(function($, doc) {
			$.init({
					statusBarBackground: '#f7f7f7'
				});
			mui.init();
		}(mui, document));
      	mainApp.controller('xieyiContentCtrl', function($scope, $http,xieyiService) {
			mui.plusReady(function(){
			    var self = plus.webview.currentWebview();
			    var xyType=self.xyType;
			    if(xyType!=undefined){
			    	getXieyi(xyType);
			    }
			});
			var getXieyi = function(xyType){
			//请求消息列表数据
			xieyiService.getXy(xyType,function(data){
				$scope.xy = data.data;
				}, function(err){
					mui.alert(err.message);
				});
			};
		});
      	
    </script>	
</body>
</html>